package 死锁;


import java.time.LocalDateTime;

public class ThreadA extends Thread{
    @Override
    public void run() {
        synchronized (Lock.LOCK_A){
            System.out.println("A线程拿到了A锁");
            synchronized (Lock.LOCK_B){
                System.out.println("A线程拿到了B锁");
            }
        }
    }
}
